#!/bin/sh
clazz=$2
pid=$1
dic=`pwd`
echo ${clazz}
echo ${JAVA_HOME}/lib/tools.jar:DynJavaAgent.jar agent.ClassRedefineTools ${pid} $dic/DynJavaAgent.jar ${clazz}
java -cp ${JAVA_HOME}/lib/tools.jar:DynJavaAgent.jar agent.ClassRedefineTools ${pid} ${dic}/DynJavaAgent.jar ${clazz}
